package com.base.core

import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import com.lib.base.data.http.HttpCode

open class BaseViewModelIml(
    private val baseModelRepo: BaseModuleRepository
) : ViewModel() {

    fun setHttpCode(httpCode: HttpCode) {
        baseModelRepo.setHttpCode(httpCode)
    }

    // 接口回执码，用于更新统一页面
    val httpNetCode: LiveData<HttpCode> = baseModelRepo.httpNetCode

}